<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        console.log('start');

        for(let i = 2; i < 10; i ++)
        {
            console.log(i)
        }

        console.log('end')
        let num = 8;
        while(num < 10){
            console.log(num)
            num ++;
        }

        let count = 1;
        do{
            console.log(count++)
        }while(count < 4);

        fun();

        console.log('ta' +  ta);
        function fun() {
            console.log('hi');
            var ts = ta = tb = 2;
        }
        console.log('ta' + ta);
        fun();

        console.log(num2);

        var num2 = 3;
        console.log(num2);
        // DOM🌲
        // Document Object Model
    </script>
</body>
</html>